package com.sunwayworld.basemodule.common.asynctask.resource.impl;

import com.sunwayworld.basemodule.common.asynctask.bean.LimsAsynctaskScheduleBean;
import com.sunwayworld.basemodule.common.asynctask.resource.ApplicationLiveResource;
import com.sunwayworld.basemodule.common.asynctask.service.LimsAsynctaskService;
import com.sunwayworld.framework.log.annotation.LogModule;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@LogModule("探活")
@RestController
@GikamBean
public class ApplicationLiveResourceImpl implements ApplicationLiveResource {

    @Autowired
    private LimsAsynctaskService limsAsynctaskService;

    @Override
    public String checkLive() {
        return "success";
    }

    @Override
    public List<LimsAsynctaskScheduleBean> asyncServerScheduleStatus(RestJsonWrapperBean wrapperBean) {
        return limsAsynctaskService.asyncServerScheduleStatus(wrapperBean);
    }

}
